﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Heidarpour.WebControlUI;

namespace CustomWebControlUI
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmitPersian_Click(object sender, EventArgs e)
        {
            Label1.Text = "Text: " + DatePicker1.Text;
            Label2.Text = "Date: " + DatePicker1.Date.ToString();
            Label3.Text = "DatePersian: " + DatePicker1.DatePersian;
            

            var t = DatePicker1.CalendarType;
        }

        protected void btnSubmitGregorian_Click(object sender, EventArgs e)
        {
            Label4.Text = "Text: " + DatePicker2.Text;
            Label5.Text = "Date: " + DatePicker2.Date.ToString();
            Label6.Text = "DatePersian: " + DatePicker2.DatePersian;
        }
    }
}